import bean.User;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    @Test
    public void main(){

        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring-user.xml");
        User user1= (User) classPathXmlApplicationContext.getBean("user1");
        User user2= (User) classPathXmlApplicationContext.getBean("user2");
        user1.show();
        user2.show();
    }
}
